package com.ruoyi.ring.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 群组信息对象 az_ring_group_message
 * 
 * @author liuwp
 * @date 2025-10-20
 */
@Data
public class RingGroupMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 被邀请/申请人id */
    @Excel(name = "被邀请/申请人id")
    private Long applicantId;

    /** 被邀请/申请人姓名 */
    @Excel(name = "被邀请/申请人姓名")
    private String applicantName;

    /** 群组名称 */
    @Excel(name = "群组名称")
    private String groupName;

    /** 群组创建人id */
    @Excel(name = "群组创建人id")
    private Long groupCreatorId;

    /** 群组创建人 */
    @Excel(name = "群组创建人")
    private String groupCreator;

    /** 群组码 */
    @Excel(name = "群组码")
    private String groupCode;

    /** 审批状态，字典：az_approval_state */
    @Excel(name = "审批状态，字典：az_approval_state")
    private String approvalState;

    /** 邀请/申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "邀请/申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applicantTime;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalTime;

    /** 加入类型：邀请加入：1，申请加入：2，字典：az_join_type */
    @Excel(name = "加入类型：邀请加入：1，申请加入：2，字典：az_join_type", dictType = "az_join_type")
    private String joinType;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applicantId", getApplicantId())
            .append("applicantName", getApplicantName())
            .append("applicantTime", getApplicantTime())
            .append("approvalTime", getApprovalTime())
            .append("joinType", getJoinType())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
